﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAO
{
    public class DataProvider
    {
        private string connString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\QLHocSinh.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True";
        
        public SqlConnection Connect()
        {
            SqlConnection conn = new SqlConnection(connString);
            conn.Open();
            return conn;
        }
    }
}
